/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.aptech.search;

import com.aptech.entity.RealEstateType;
import com.aptech.session.RealEstateTypeFacadeLocal;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author Administrator
 */
@ManagedBean
@RequestScoped
public class SearchRealEstateTypeBean {
    @EJB
    private RealEstateTypeFacadeLocal realEstateTypeFacade;
    private String field;
    private Object value;

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public List<RealEstateType> getListrealestatetype() {
        return listrealestatetype;
    }

    public void setListrealestatetype(List<RealEstateType> listrealestatetype) {
        this.listrealestatetype = listrealestatetype;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }
    private List<RealEstateType> listrealestatetype;
    /** Creates a new instance of SearchRealEstateTypeBean */
    public SearchRealEstateTypeBean() {
    }
    
    public String searchrealestatetype()
    {
        listrealestatetype=realEstateTypeFacade.SearchRealEstateType(field, value);
        return "ResultRealEstateType";
    }
}
